from interactive import *

css("#ColonyView")

linkpart("EPO").click()

twait()

css("#ColonyMenu")

linkpart("Litters").click()

twait()

Select(css("#LitterList select")).select_by_value("1")

twait()

New()
twait()
css("#MouseDetail #Tag").clear()
css("#MouseDetail #Tag").send_keys("MOUSETEST")
css("#MouseDetail #Cage").send_keys("1234");
css("#MouseDetail #Comment").send_keys("This is a test")
Done()
twait()

Select(css("#LitterList select")).select_by_value("1")

linkpart("MOUSETEST").click()

twait()
assert(css("#MouseDetail #Tag").get_attribute("value") == "MOUSETEST")
assert(css("#MouseDetail #Cage").get_attribute("value") == "1234")
assert(css("#MouseDetail #Comment").get_attribute("value") == "This is a test")
twait()

driver.quit()
